Utility.generateDiscreteColorRules Method

Generates and adds discrete color rules to the specified collection for the first hierarchy assigned as color.
 

Parameters

adapter

Type: Adapter
colorRules

Type: Array
ElementType: ColorBindingRule
The color rule collection to which to add.
elementUsage

Type: String
The element usage from the metric set for the hierarchy assigned as color.
metricSetBinding

Type: MetricSetBinding
The metric set binding to retrieve member values from for generating discrete rules.
useMemberTime

Type: Boolean
true if the properties should be set using the date values of the hierarchy members where available.
Optional: True

Return Value


Type: jQuery.Promise
A promise that resolves and returns the updated colorRules.